//
//  MatchDetailVC.m
//  LuCoding
//
//  Created by lanou3g on 15/10/14.
//  Copyright © 2015年 自由科技. All rights reserved.
//

#import "MatchDetailVC.h"

@interface MatchDetailVC ()

@end

@implementation MatchDetailVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor cyanColor];
    NSLog(@"%@",self.index);
    NSArray * arr = [self.index componentsSeparatedByString:@"&"];
    NSLog(@"%@",arr[0]);
    NSString *str =@"http://lol.duowan.cn/";
    NSString * url = [str stringByAppendingString:arr[0]];
    url = [url stringByAppendingString:@".html"];
    NSLog(@"%@",url);
    UIWebView * web = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    NSURLRequest *req = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];
    [web loadRequest:req];
    [self.view addSubview:web];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
